import Vue from 'vue';

// 导入mui的样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
import './lib/css/thumbs.css'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

//导入router模块
import VueRouter from 'vue-router'
Vue.use(VueRouter)
//导入格式化时间模块
import moment from 'moment'
//使用全局过滤器进行格式化
Vue.filter('dataFormat',function (dataStr,pattern="YYYY-MM-DD HH:mm:ss") {
   return  moment(dataStr).format(pattern);
})
//导入resource模块
import VueResource from 'vue-resource'
Vue.use(VueResource)
Vue.http.options.root='http://www.liulongbin.top:3005'
Vue.http.options.emulateJSON=true

//导入缩略图插件
import VuePreview from 'vue-preview'
// import VuePreview from 'vue2-preview'
Vue.use(VuePreview)
import router from './router.js'
import App from './App.vue'
var vm=new Vue({
    el:"#app",
    render:c=>c(App),
    router
})